<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri='http://java.sun.com/portlet' prefix='portlet'%>
<%@ page import="javax.portlet.*"%>
<%@ page import="java.util.*"%>
<%@ page import="cn.com.chinasoa.course.subscribe.SubscribeOrderCreateActionFilter"%>
<%@ page import="cn.com.chinasoa.course.subscribe.model.*"%>
<%@ page import="cn.com.chinasoa.course.subscribe.util.*"%>
<%@ page import="com.x4ee.soa.portal.framework.tools.*"%>
<%@ page import="cn.com.chinasoa.restkernel.core.RestServiceURL"%>
<%@ page import="com.x4ee.soa.portal.container.kernel.impl.RenderResponseImpl"%>
<%@ page import="com.x4ee.soa.portal.container.core.*"%>
<%@ page import="javax.persistence.*"%>

<%String contextPath = request.getContextPath();%>

<portlet:defineObjects />
<table>
	<tr>
		<td valign="top">
			<table>
<%EntityManager em = EntityManagerHelper.getEntityManager();SubscribeOrder tSubscribeOrder = em.find(SubscribeOrder.class,SubscribeOrderCreateActionFilter.getOrderId(renderRequest));%>
<tr><td>订单号码:</td><td><strong><%=SubscribeOrderCreateActionFilter.getOrderId(renderRequest)%></strong></td></tr>
<tr><td></td></tr>
<tr><td><strong>学员姓名:</strong></td><td><%=tSubscribeOrder.getStudentName()%></td></tr>
<tr><td><strong>学员性别:</strong></td><td><%=tSubscribeOrder.isStudentSex()%></td></tr>
<tr><td><strong>电子邮件:</strong></td><td><%=tSubscribeOrder.getStudentEmail()%></td></tr>
<tr><td><strong>工作单位:</strong></td><td><%=tSubscribeOrder.getStudentCompany()%></td></tr>
<tr><td><strong>联系地址:</strong></td><td><%=tSubscribeOrder.getStudentAddress()%></td></tr>
<tr><td><strong>联系电话:</strong></td><td><%=tSubscribeOrder.getStudentPhone()%></td></tr>
<tr><td><strong>移动电话:</strong></td><td><%=tSubscribeOrder.getMobilePhone()%></td></tr>
<tr><td></td></tr>
<tr><td><strong>所选课程:</strong></td><td><%=tSubscribeOrder.getArrangedCourse().getTrainingSubject().getCode()%></td></tr>
<tr><td><strong>付费金额:</strong></td><td><%=tSubscribeOrder.getActualPrice()%>&nbsp;元&nbsp;(原价<%=tSubscribeOrder.getArrangedCourse().getTrainingSubject().getPrice()%>&nbsp;元)</td></tr>
<tr><td><strong>授课城市:</strong></td><td><%=tSubscribeOrder.getArrangedCourse().getTrainingAddress().getCity()%></strong></td></tr>
<tr><td><strong>授课地址:</td><td><%=tSubscribeOrder.getArrangedCourse().getTrainingAddress().getAddress()%></td></tr>
<tr><td><strong>授课日期:</strong></td><td><%=DataTypeUtil.renderCalenderCN(tSubscribeOrder.getArrangedCourse().getStartDate())%>-<%=DataTypeUtil.renderCalenderCN(tSubscribeOrder.getArrangedCourse().getEndDate())%></td></tr>
<tr><td><strong>授课时间:</strong></td><td><%=DataTypeUtil.renderTimeAMPM(tSubscribeOrder.getArrangedCourse().getTrainingSubject().getStartTime())%>-<%=DataTypeUtil.renderTimeAMPM(tSubscribeOrder.getArrangedCourse().getTrainingSubject().getEndTime())%></td></tr>
<tr><td><strong>订单状态:</strong></td><td><%=tSubscribeOrder.checkStatus()%></td></tr>			
			<%EntityManagerHelper.closeEntityManager();%>
<tr><td></td></tr>
<tr><td><a href="<portlet:actionURL><portlet:param name="frameworkUri" value="subscribeOrderDownActionFilter"/><portlet:param name="orderId" value="<%=SubscribeOrderCreateActionFilter.getOrderId(renderRequest)+""%>"/><portlet:param name="orderFileName" value="<%=SubscribeOrderCreateActionFilter.getOrderId(renderRequest)+".pdf"%>"/></portlet:actionURL>">
		<img border="0" src="<%=contextPath%><%=ConfigUtils.getResourceBasePath(renderRequest)%>/image/down.jpg"/></a></td>
	<td><a href="<portlet:actionURL><portlet:param name="frameworkUri" value="subscribeOrderClearAction"/></portlet:actionURL>">
		<img border="0" src="<%=contextPath%><%=ConfigUtils.getResourceBasePath(renderRequest)%>/image/back.jpg"/></a></td></tr>		
			</table>
		</td>
	</tr>
</table>
